package com.cskaoyan.service;

import com.cskaoyan.bean.CskaoyanmallCart;
import com.cskaoyan.bean.CskaoyanmallUser;
import com.cskaoyan.bean.bo.CartBo;
import com.cskaoyan.bean.bo.CartCheckedBo;
import com.cskaoyan.bean.bo.CartCheckoutBo;
import com.cskaoyan.bean.vo.CartCheckeoutVo;
import com.cskaoyan.bean.vo.CartIndexVo;

import java.util.List;
import java.util.Map;

public interface WXShoppingService {
    CartIndexVo cartIndex(CskaoyanmallUser user);

    CartIndexVo cartCheckedService(CartCheckedBo bo, CskaoyanmallUser user);

    Long cartAddService(CskaoyanmallCart bo, CskaoyanmallUser user);

    int cartUpdateService(CskaoyanmallCart bo,CskaoyanmallUser user);

    int cartDeleteService(Map<String,List<Integer> >productIds, CskaoyanmallUser user);

    Integer cartGoodscountService(CskaoyanmallUser user);

    Integer cartFastaddService(CskaoyanmallCart bo, CskaoyanmallUser user);

    CartCheckeoutVo cartCheckoutService(CartCheckoutBo bo, CskaoyanmallUser user);

    List<CskaoyanmallCart> getCheckedGoodsList(Integer cartId,Integer userId);

    void clearGoods(Integer userId);

    void deleteCart(Integer cartId);
}
